x86emul: don't open code EFLAGS handling for 2-operand IMUL
authorJan Beulich <jbeulich@suse.com>
Wed, 17 Aug 2016 13:33:27 +0000 (15:33 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 17 Aug 2016 13:33:27 +0000 (15:33 +0200)
commit0cf612cd0e30cbfae2768f03c69110ea3dca31a7
tree099f3171f54c1862b9862c76774b97076b91db62
parenta3db233edec1a253f8f47ebf1b89c0a309ef1e39
x86emul: don't open code EFLAGS handling for 2-operand IMUL

Slightly extending the emulate_2op*() macro machinery makes it usable
for IMUL r,r/m too, which has the benefit of smaller source code and
the EFLAGS output being guaranteed to match actual hardware behavior.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/x86_emulate/x86_emulate.c